 #ifndef MYPUSHBUTTON_H
#define MYPUSHBUTTON_H

#include <QPushButton>
#include <QGraphicsView>
#include <QGraphicsScene>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QColorDialog>
#include "drawing.h"
#include <QInputDialog>
#include <QLabel>
#include <QFileDialog>

class mypushbutton : public QPushButton
{
    Q_OBJECT

public:


    mypushbutton(const QString &text, QWidget *parent = nullptr);

    // 绘图场景和视图
   DrawingScene *scene;
   QGraphicsView *view;

    // 按钮布局
    QHBoxLayout *buttonLayout;

    // 主布局
    QVBoxLayout *mainLayout;

protected:
    void onZoomIn();
    void onZoomOut();


private slots:
    void saveImage();

signals:


private:


};

#endif // MYPUSHBUTTON_H
